import { createApp } from "vue"
import router from "./router"
import App from "./App.vue"
import DataVVue3 from '@kjgl77/datav-vue3'
import VueEcharts from 'vue-echarts'
import * as echarts from 'echarts/core'
import { CanvasRenderer } from 'echarts/renderers'
import { BarChart, LineChart, PieChart } from 'echarts/charts';
import {
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  GridComponent,
  VisualMapComponent
} from 'echarts/components';
import "normalize.css"
import "./style.css"
echarts.use([
  CanvasRenderer,
  BarChart,
  LineChart,
  PieChart,
  TitleComponent,
  TooltipComponent,
  LegendComponent,
  GridComponent,
  VisualMapComponent,
]);
let app = createApp(App)
app.component('v-chart', VueEcharts)
app.use(router).mount("#app")
app.use(DataVVue3)
